package observer.impl;

import observer.Investor;

/**
 * 具体观察者: 机构投资者
 *
 * @author Liu Yicong
 * @date 2025/9/23
 */
public class InstitutionalInvestor implements Investor {
	private String institutionName;

	public InstitutionalInvestor(String name) {
		this.institutionName = name;
	}

	@Override
	public void update(String stockName, double price) {
		System.out.println(institutionName + " 收到通知：股票 [" + stockName + "] 的最新价格是 " + price + "。正在分析...");
	}
}
